package ns.om.domain.dict

/**
 * 任务状态
 * @author neo
 * 2013-3-15
 */
class TaskStatus {
	String code;
	String name;
	Integer seq;


	static mapping = {
		id name:'code',generator:'assigned'
	}

	static init ={
		new TaskStatus(code:'waiting',name:'未开始',seq:10).save()
		new TaskStatus(code:'working',name:'进行中',seq:20).save()
		new TaskStatus(code:'complete',name:'完成',seq:50).save()
		new TaskStatus(code:'close',name:'关闭',seq:60).save()
	}

	@Override
	public String toString() {
		return "$name";
	}
}
